package com.xq;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;

/**
 * 启动类
 * XqServerUserApplication
 ***************************************
 * 更多精彩B站搜索: 学相伴飞哥
 * 资料下载学习平台：http://www.itbooking.net
 * 创世神B站：https://space.bilibili.com/490711252
 ***************************************
 * 创建人:yykk
 * 创建时间：2021年09月14日 21:29:29
 * @version 1.0.0
*/
@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.xq.mapper")
public class XqServerUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(XqServerUserApplication.class, args);
    }

    //分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
